import request from '@/utils/clientRequest.js'
let host = '/shengxue'
//登陆注册
export const identityLogin = (obj) => {
    return request.post(host + '/identity/login', obj)
}
export const sendMessageCode = (obj) => {
    return request.post(host + '/identity/sendMessageCode', obj)
}
export const getSchoolsById = (id) => {
    return request.post(host + '/area/getSchoolsById/' + id)
}
export const getConsultationList = (obj) => {
    return request.post(host + '/consultation/list', obj)
}
export const getConsultationDetail = (id) => {
    return request.get(host + '/consultation/' + id)
}
export const getCascadeArea = () => {
    return request.post(host + '/area/getCascadeArea')
}
export const queryResearchActivityById = (id) => {
    return request.get(host + '/researchActivity/queryResearchActivityById/' + id)
}
export const getResearchService = (obj) => {
    return request.post(host + '/researchActivity/getResearchService', obj)
}
export const getRecommendResearchInfo = () => {
    return request.post(host + '/researchActivity/getRecommendResearchInfo')
}
export const getResearchInfoByPage = (obj) => {
    return request.post(host + '/researchActivity/getResearchInfoByPage', obj)
}
export const getRecommendResearchPolicy = () => {
    return request.post(host + '/researchActivity/getRecommendResearchPolicy')
}
export const getResearchPolicyByPage = (obj) => {
    return request.post(host + '/researchActivity/getResearchPolicyByPage', obj)
}
export const queryResearchPolicyById = (id) => {
    return request.get(host + '/researchActivity/queryResearchPolicyById/' + id)
}
export const getResearchActivit = (obj) => {
    return request.post(host + '/researchActivity/getResearchActivit', obj)
}
export const getResearchActivityByPage = (obj) => {
    return request.post(host + '/researchActivity/getResearchActivityByPage', obj)
}
export const queryResearchInfoById = (id) => {
    return request.get(host + '/researchActivity/queryResearchInfoById/' + id)
}
export const getResearchBanner = () => {
    return request.post(host + '/researchActivity/getResearchBanner')
}
export const getRecommendResearchActivity = () => {
    return request.post(host + '/researchActivity/getRecommendResearchActivity')
}
export const queryAllConditions = () => {
    return request.post(host + '/entrancePath/queryAllConditions')
}
export const queryPathByConditions = (obj) => {
    return request.post(host + '/entrancePath/queryPathByConditions', obj)
}
export const queryPathAcademyById = (obj) => {
    return request.post(host + '/entrancePath/queryPathAcademyById', obj)
}
export const queryPathSurveyById = (id) => {
    return request.get(host + '/entrancePath/queryPathSurveyById/' + id)
}

// //获取默认注册省份班级等信息
let local = '/shengxueApi'
export const getTeacherUserInfoById = (obj) => {
    return request.post(local + '/thirdParty/user/getTeacherUserInfoById', obj)
}
export const getPrizeVipCard = () => {
    return request.post(local + '/vipcard/getPrizeVipCard')
}
export const createPrizeVipCardByMobile = (obj) => {
    return request.post(local + '/vipcard/createPrizeVipCardByMobile', obj)
}
export const getUserInfoById = (obj) => {
    return request.post(local + '/thirdParty/user/getUserInfoById', obj)
}
export const isWxBind = (obj) => {
    return request.post(local + '/thirdParty/isBoolen', obj)
}
//获取用户是否vip

export const getMyVip = (obj) => {
    return request.post(local + '/appUserInfoService/myVip', obj)
}
export const userBinding = (obj) => {
    return request.post(local + '/thirdParty/userBinding', obj)
}
export const forgetPassword = (obj) => {
    return request.post(local + '/identity/forgetPassword', obj)
}
export const accredit = (obj) => {
    return request.post(local + '/identity/accredit', obj)
}
export const modifyPersonalInfo = (obj) => {
    return request.post(local + '/users/modifyPersonalInfo', obj)
}
export const topicInfo = (obj) => {
    return request.post(local + '/information/topic/info', obj)
}
export const topicCommentPage = (obj) => {
    return request.post(local + '/moments/topicCommentPage', obj)
}
export const labelsAndSections = (obj) => {
    return request.post(local + '/information/topic/labelsAndSections', obj)
}
export const infosLinkLabel = (obj) => {
    return request.post(local + '/information/topic/infosLinkLabel', obj)
}
export const infoTopicComment = (obj) => {
    return request.post(local + '/moments/infoTopicComment', obj)
}
export const followList = (obj) => {
    return request.post(local + '/userFollow/followList', obj)
}
export const followUser = (obj) => {
    return request.post(local + '/academyService/followUser', obj)
}
export const followProfessorList = (obj) => {
    return request.post(local + '/userFollow/person/followProfessorList', obj)
}
export const agencyfollowUser = (obj) => {
    return request.post(local + '/agencyUser/followUser', obj)
}
export const professorHelp = (obj) => {
    return request.post(local + '/professor/help', obj)
}

export const messageList = (obj) => {
    return request.post(local + '/mine/messageList', obj)
}
export const academyQuestion = (obj) => {
    return request.post(local + '/answerService/academyQuestion', obj)
}
export const infoHomePageMoreByProvince = (obj) => {
    return request.post(local + '/information/topic/infoHomePageMoreByProvince', obj)
}
export const indexShow = (obj) => {
    return request.post(local + '/information/indexShow', obj)
}
export const professorHomePage = (obj) => {
    return request.post(local + '/professor/professorHomePage', obj)
}
export const getQuestionDetail = (obj) => {
    return request.post(local + '/professor/getQuestionDetail', obj)
}
export const pageInfo = (obj) => {
    return request.post(local + '/agencyUser/pageInfo', obj)
}
export const info = (obj) => {
    return request.post(local + '/openapp/info', obj)
}
export const userUnbind = (obj) => {
    return request.post(local + '/thirdParty/userUnbind', obj)
}
export const myPersonalInfo = () => {
    return request.post(local + '/users/myPersonalInfo')
}
export const replyAnswer = (obj) => {
    return request.post(local + '/professor/replyAnswer', obj)
}
export const deletedQuestions = (obj) => {
    return request.post(local + '/professor/deletedQuestions', obj)
}
export const replyAnswerList = (obj) => {
    return request.post(local + '/professor/replyAnswerList', obj)
}
export const showByProvince = (obj) => {
    return request.post(local + '/information/topic/showByProvince', obj)
}
export const getCommodityTopicPageList = (obj) => {
    return request.post(local + '/openapp/getCommodityTopicPageList', obj)
}
export const getIndexCommodityList = (obj) => {
    return request.post(local + '/openapp/commodity/getIndexCommodityList', obj)
}
export const commodityIndex = () => {
    return request.post(local + '/openapp/commodity/index')
}

export const agencyUserInfo = (obj) => {
    return request.post(local + '/agencyUser/Info', obj)
}
export const agencyUserFollowUser = (obj) => {
    return request.post(local + '/agencyUser/followUser', obj)
}
export const getCommodityTopicDetail = (obj) => {
    return request.post(local + '/openapp/getCommodityTopicDetail', obj)
}
export const getAppRecommendCommodity = (obj) => {
    return request.post(local + '/openapp/commodity/getAppRecommendCommodity', obj)
}
export const getAppAllCommodityList = (obj) => {
    return request.post(local + '/openapp/commodity/getAppAllCommodityList', obj)
}
export const getAppCommodityTopic = (obj) => {
    return request.post(local + '/openapp/commodity/getAppCommodityTopic', obj)
}
export const getAppCommodityTopicInfo = () => {
    return request.post(local + '/openapp/commodity/getAppCommodityTopicInfo')
}
export const getAppOneOneFiveCommodity = (obj) => {
    return request.post(local + '/openapp/commodity/getAppOneOneFiveCommodity', obj)
}
export const getAppAllCommodityTopic = (obj) => {
    return request.post(local + '/openapp/commodity/getAppAllCommodityTopic', obj)
}
export const getAppOneOneFiveCommodityList = (obj) => {
    return request.post(local + '/openapp/commodity/getAppOneOneFiveCommodityList', obj)
}
export const getAppCommodity = (obj) => {
    return request.post(local + '/openapp/commodity/getAppCommodity', obj)
}
export const getQuestionTypeList = () => {
    return request.post(local + '/professor/getQuestionTypeList')
}
export const getAssignProfessor = (obj) => {
    return request.post(local + '/professor/getAssignProfessor', obj)
}
export const quiz = (obj) => {
    return request.post(local + '/professor/quiz', obj)
}
export const professorInfo = (obj) => {
    return request.post(local + '/agencyUser/Info', obj)
}
export const professorQusDetail = (obj) => {
    return request.post(local + '/professor/getQuestionDetail', obj)
}
export const getProfessorQusAndAnsPage = (obj) => {
    return request.post(local + '/professor/professorQusAndAnsPage', obj)
}
export const infosInSectionByProvince = (obj) => {
    return request.post(local + '/information/topic/infosInSectionByProvince', obj)
}
export const infosInSection = (obj) => {
    return request.post(local + '/information/topic/infosInSection', obj)
}
export const sectionTopicLabels = (obj) => {
    return request.post(local + '/information/topic/sectionTopicLabels', obj)
}
export const unReadAnswerNum = () => {
    return request.post(local + '/answer/notify/unReadAnswerNum')
}
export const reduceUnReadAnswerNum = () => {
    return request.post(local + '/answer/notify/reduceUnReadAnswerNum')
}
export const getUnReadNum = () => {
    return request.post(local + '/moments/notify/getUnReadNum')
}
export const reduceUnReadNum = () => {
    return request.post(local + '/moments/notify/reduceUnReadNum?section=4')
}
export const getBatchCommodityType = (obj) => {
    return request.post(local + '/openapp/commodity/getBatchCommodityType', obj)
}
let tool = ''
export const upload = (obj) => {
    return request.post(tool + '/tools/oss/upload', obj)
}
